package com.work.framework.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 聊天表
 */
@TableName(value = "chat")
public class Chat {

  @TableId(type = IdType.AUTO)
  private Integer cid;    //聊天编号（主键）
  private UserInfo p_uInfo;   //卖家编号（用户表主键）
  private UserInfo b_uInfo;    //买家编号（用户表主键）
  private Integer flage;    //软删除


  public Integer getCid() {
    return cid;
  }

  public void setCid(Integer cid) {
    this.cid = cid;
  }

  public UserInfo getP_uInfo() {
    return p_uInfo;
  }

  public void setP_uInfo(UserInfo p_uInfo) {
    this.p_uInfo = p_uInfo;
  }

  public UserInfo getB_uInfo() {
    return b_uInfo;
  }

  public void setB_uInfo(UserInfo b_uInfo) {
    this.b_uInfo = b_uInfo;
  }

  public Integer getFlage() {
    return flage;
  }

  public void setFlage(Integer flage) {
    this.flage = flage;
  }

  @Override
  public String toString() {
    return "Chat{" +
            "cid=" + cid +
            ", p_uInfo=" + p_uInfo +
            ", b_uInfo=" + b_uInfo +
            ", flage=" + flage +
            '}';
  }
}
